﻿using System;
using System.Collections;
using System.Configuration;
using System.Web.Configuration;
using HospitalSystem.Core;

namespace HospitalSystem
{
    public partial class recpromotedevelopment3 : System.Web.UI.Page
    {
        private recpromotedevelopmentLog _RA;
        string actcode = WebConfigurationManager.AppSettings["actcode3"];
        protected void Page_Load(object sender, EventArgs e)
        {
              _RA = new recpromotedevelopmentLog();


              if (!IsPostBack)
              {
                  String ShowValue = (string)Session["PSNumber01"];
                  Label1.Text = ShowValue;
                  _RA.BindDataService(GridView2, actcode);
                  _RA.readtodatatable(GridView11, GridView2, Label1, actcode);
                  _RA.BindDataMaterial(GridView1, GridView3, Label1, actcode);
              }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            _RA.insertdatatodb(SelectStat, GridView2, Label1, GridView11, actcode);
            // _RA.insertdatatodb(SelectStat, GridView2, Label1, GridView11, sqlInput);
            _RA.insertdata2todb(SelectStat, GridView1, GridView3, Label1, actcode);
        }
    }
}